import { request } from '../../request'; // 选取门店

export function getPackageAddress() {
    return request('v1.order/getPackageAddressV2');
} // 立即下单

export function createorder(data) {
    return request('v1.order/createorder', data);
}
/********************      回收车      ********************/
// 加入购物车

export function cartAdd(data) {
    return request('v1.cart/add', data);
} // 更新购物车数量

export function cartUpdate(data) {
    return request('v1.cart/update', data);
} // 删除购物车

export function cartDelete(data) {
    return request('v1.cart/delete', data);
} // 购物车列表信息

export function cartList(data, loading) {
    return request('v1.cart/index', data, loading);
}
/********************      地址管理      ********************/
// 添加地址

export function UserDoorAddressCreate(data) {
    return request('v1.UserDoorAddress/create', data);
} // 编辑地址

export function UserDoorAddressUpdate(data) {
    return request('v1.UserDoorAddress/update', data);
} // 删除地址

export function UserDoorAddressDelete(data) {
    return request('v1.UserDoorAddress/delete', data);
} // 地址详情

export function UserDoorAddressDetails(data) {
    return request('v1.UserDoorAddress/details', data);
} // 加盟商下单

export function createStoreOrder(data) {
    return request('v1.order/createStoreOrder', data);
}
